import ko from 'knockout'
// import ycloud from 'ycloud'
import template from './index.html'
import BaseView from '@/base/baseview'

class View extends BaseView {
  data () {
    this.personSelected = ko.observable()
    this.handleOk = (selectedItem) => {
      alert(JSON.stringify(selectedItem))
    }

    this.radioValue = ko.observable(2)
    this.radioDataList = ko.observableArray([
      {value: 1, label: '无发票'},
      {value: 2, label: '普通发票'},
      {value: 3, label: '增值锐发票'}
    ])
  }
}

export default {
  template,
  View
}
